import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login/login',
    method: 'post',
    data
  })
}

// 获取一级路由信息
export function getInfo() {
  return request({
    url: '/model/GetMemuTop',
    method: 'post'
  })
}

// 获取二级路由信息
export function getInfotwo(params) {
  return request({
    url: '/model/GetMemu',
    method: 'post',
    data: params
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
